// TBCollection_BPA.cpp: implementation of the CTBCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Swi/TBCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CTBCollection_BPA::CTBCollection_BPA()
{

}

CTBCollection_BPA::~CTBCollection_BPA()
{

}

CTB_BPA* CTBCollection_BPA::GetFirstTB()
{
	return (CTB_BPA*)CCardCollection_BPA::GetFirstCard();
}

CTB_BPA* CTBCollection_BPA::Traverse(CTB_BPA *pTB, int nDirection)
{
	return (CTB_BPA*)CCardCollection_BPA::Traverse(pTB,nDirection);
}

CTB_BPA* CTBCollection_BPA::GetTB(char *strBusName, double dkV, char nID)
{
	CTB_BPA tempTB;
	strcpy(tempTB.m_strName,strBusName);
	tempTB.m_dkV = dkV;
	tempTB.m_chID = nID;
	return (CTB_BPA*)CCardCollection_BPA::GetCard(&tempTB);
}